package pers.vinsonws.jianghu.tools;

import pers.vinsonws.jianghu.util.MessageLabel;

/**
 * @auther vinsonws
 * @date 2018/11/7 22:46
 */
public class MergeMessage {

    public static String infoToMessage(String[] info, int type){
        if ((MessageLabel.getLabel(type) == null)) throw new NullPointerException("Label NullPointer");
        String afterDeal = "";
        for (String s:info){
            afterDeal = afterDeal+MessageLabel.getLabel(type)+s;
        }
        return afterDeal;
    }
}
